/*
 * Copyright (C) 2017
 *
 * Brick Yang <printfxxx@163.com>
 *
 * This program is free software. You can redistribute it and/or
 * modify it as you like.
 */

/**
 * @file	dprc.h
 * @brief	Header file for dprc driver
 */

#ifndef _DPRC_H_
#define _DPRC_H_

#include <linux/types.h>
#include <linux/fsl/mc.h>

#include <fsl-mc-private.h>

#define dprc_get_connection	__dprc_get_connection
#define dprc_endpoint		__dprc_endpoint

struct dprc_endpoint {
	char type[16];
	int id;
	u16 if_id;
};

int  dprc_get_connection(struct fsl_mc_io *mc_io,
			u32 cmd_flags,
			u16 token,
			const struct dprc_endpoint *ep1,
			struct dprc_endpoint *ep2,
			int *state);

#endif	/* _DPRC_H_ */
